Bitcoin Core install
バイナリを使う場合は便利なスクリプトがある
Arch Linux
code:shell
pacman -S git base-devel boost libevent python
cd bitcoin/
./autogen.sh
./configure --prefix=$HOME --exec-prefix=$HOME --disable-man --with-gui=no --disable-wallet --without-miniupnpc
// make clean が必要な場合あり
make check -j4
make install
$HOME に bin
mv $HOME/bitcoin/share/example/bitcoin.conf $HOME/.bitcoin/
よく使う設定
code:configure
./configure \
--prefix=$HOME/bitcoind/0.21.1-bin \
--disable-man --with-gui=no --disable-wallet --without-miniupnpc
code:shell
./configure --prefix=$HOME/bitcoind/0.23.0-bin --disable-man --with-gui=no --disable-wallet --without-miniupnpc --with-boost-libdir=$HOME/libboost/boost_1_77_0_bin/lib
libboost 用のオプションは他にもあり違いがよくわからない
--with-boost-libdir よりも --with-boost のほうがよさそう?
libboost のどのバージョンまで動くかを知るには?
./configure options
prefix: where to install binary
依存パッケージとして、システムのバイナリではなく、ビルドしたバイナリを使う方法
depends ディレクトリで make して、Core 側の configure にオプションを渡す感じ
$ make NO_QT=1 NO_QR=1
$ CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure
Log
v23.0
code:shell
./configure --prefix=$HOME/bitcoind/0.23.0-bin --disable-man --without-miniupnpc --with-boost=$HOME/libboost/boost_1_77_0_bin/lib
v22.0
code:shell
./configure --prefix=$HOME/bitcoind/0.22.0-bin --disable-man --with-gui=no --disable-wallet --without-miniupnpc --with-boost=$HOME/libboost/boost_1_71_0_bin/lib
make
Install to M1 Mac
code:shll
./configure --prefix=$HOME/bitcoind/0.23.0 --exec-prefix=$HOME/bitcoind/0.23.0 --with-gui=no --without-miniupnpc